]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove use of octal constants
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 30 Sep 2010 16:41:20 +0000 (12:41 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 30 Sep 2010 16:43:12 +0000 (12:43 -0400)
New spidermonkey warns on octal constants, so we can't
even use them for file permissions. Switch to hex plus a comment.

js/ui/telepathyClient.js

index f5c6663b1788e5656cb7a16b2eac7f9a3aed32a5..9a4aaf9a9bba9d46a53cec932b3511ad514bdaad 100644 (file)
@@ -211,7 +211,7 @@ ContactManager.prototype = {
             throw new Error('Could not parse connection path ' + connPath);
 
         info.cacheDir = this._cacheDir + '/' + match[1];
-        GLib.mkdir_with_parents(info.cacheDir, 0700);
+        GLib.mkdir_with_parents(info.cacheDir, 0x1c0); // 0x1c0 = octal 0700
 
         // info.names[handle] is @handle's real name
         // info.tokens[handle] is the token for @handle's avatar